/**
 * @标题：服务
 * @描述：描述一个可以返回此用户所有评论的服务
 * @author: 李东峻
*  @version V1.0, 2015/1/28
 */
package com.linkage.service.consumer;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linkage.pojo.commodity.Comment;
import com.linkage.repository.consumer.CommentRepository;

@Service("listCommentHistoryService")
public class ListCommentHistoryService {
	@Autowired
	private CommentRepository commentRepository;
	
	public List<Comment> listCommentHistory(Integer userId){
		
		return this.commentRepository.selectCommentByUserId(userId);
	}

   
}
